package com.eisula.sc.database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "t_vehiculo")
@Proxy(lazy = false)
public class Vehiculo {

	private int id;
	private String tipo;
	private int cantidad;

	private Hogar hogarId;

	// --------------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// --------------------------------------------------------------------------------

	public String getTipo() {
		return tipo;
	}

	public void setTipo(String tipo) {
		this.tipo = tipo;
	}

	// --------------------------------------------------------------------------------

	public int getCantidad() {
		return cantidad;
	}

	public void setCantidad(int cantidad) {
		this.cantidad = cantidad;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Hogar getHogarId() {
		return hogarId;
	}

	public void setHogarId(Hogar hogarId) {
		this.hogarId = hogarId;
	}

	// --------------------------------------------------------------------------------

}
